import request from '@/server'

export const queryOrderListApi = (data) => {
  return request.post({
    url: '/snsh/order/queryList',
    data
  })
}

export const addOrderApi = (data) => {
  return request.post({
    url: '/snsh/order/create',
    data
  })
}

export const payOrderApi = (params) => {
  return request.get({
    url: '/snsh/order/payment',
    params
  })
}

export const deleteOrderApi = (params) => {
  return request.get({
    url: '/snsh/order/delete',
    params
  })
}

export const cancelOrderApi = (params) => {
  return request.get({
    url: '/snsh/order/cancel',
    params
  })
}

export const deleteTruthOrderOrderApi = (params) => {
  return request.get({
    url: '/snsh/order/deleteTruthOrder',
    params
  })
}
